package api.http.object.api;

import api.base.bean.BasicResponse;
import api.http.object.bean.ObjectBean;
import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Path;

/**
 * Created by Administrator on 2018-01-12.
 */

public interface ObjectService {
//
//    @GET("福利/10/1")
//    Observable<BasicResponse<List<MeiZi>>> getMezi();


    @Headers({"Content-Type: application/json", "Accept: application/json","X-Bmob-Application-Id:4fe24b0047944684797debc3d5bc4441","X-Bmob-REST-API-Key:69ac53428d6a48a8ae37745947cdc43e"})
    @POST("1/classes/"+"{TableName}")
    Observable<BasicResponse<ObjectBean>> addObject(@Path("TableName") String TableName, @Body RequestBody map);//请求体



}
